package com.twu.biblioteca;

class SecurityContext {

    private static User user;

    boolean isUserLoggedIn() {
        return user != null;
    }

    User getUser() {
        return user;
    }

    void setUser(User user) {
        SecurityContext.user = user;
    }

    void clear() {
        SecurityContext.user = null;
    }

}
